package com.applcn.order.constant;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * com.applcn.order.constant
 * Description:
 *
 * @author: 大妖怪
 * @date: 2020-01-20 00:12
 */
public enum OrderTypeEnum implements IEnum<Integer> {

    /**
     * 充值余额
     */
    RECHARGE_BALANCE(0, "充值余额"),

    /**
     * 购买商品
     */
    BUY_GOODS(1, "购买商品"),

    /**
     * 购买付费版店铺
     */
    BUY_SHOP(2, "购买付费版店铺");

    private int code;
    private String desc;

    OrderTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return this.getCode();
    }
}
